package com.usian.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.admin.dtos.NewsAuthDto;
import com.usian.model.common.dtos.PageResponseResult;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmNewsDto;
import com.usian.model.media.dtos.WmNewsPageReqDto;
import com.usian.model.media.pojos.WmNews;
import com.usian.model.media.vos.WmNewsVo;

import java.util.List;

public interface WmNewsService extends IService<WmNews> {
    ResponseResult findall(WmNewsPageReqDto dto);

    /**
     * 自媒体文章发布
     * @param wmNews
     * @param isSubmit  是否为提交 1 为提交 0为草稿
     * @return
     */
    void saveNews(WmNews wmNews, Short isSubmit);

    ResponseResult wmNewsService(Integer id);

    ResponseResult delbyid(Integer id);

    ResponseResult donworup(WmNewsDto dto);

    List<Integer> findRelease();

    PageResponseResult findListAndPage(NewsAuthDto dto);

    WmNewsVo findWmNewsVo(Integer id);
}
